using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAnalyticsTools.Models
{
    /// <summary>
    /// 异常检测结果
    /// </summary>
    public class AnomalyInfo
    {
        /// <summary>
        /// 检测方法
        /// </summary>
        public string Method { get; set; }

        /// <summary>
        /// 异常分数数组，长度等于样本数
        /// 值越高表示越可能是异常点
        /// </summary>
        public float[] AnomalyScores { get; set; }

        /// <summary>
        /// 异常阈值
        /// </summary>
        public float Threshold { get; set; }

        /// <summary>
        /// 异常点信息列表
        /// </summary>
        public List<AnomalyPoint> AnomalyPoints { get; set; }

        /// <summary>
        /// 异常严重程度
        /// </summary>
        public float Severity { get; set; }

        /// <summary>
        /// 置信度 (0-1之间)
        /// </summary>
        public float Confidence { get; set; }

        /// <summary>
        /// 基准值（正常值的参考范围）
        /// </summary>
        public float[] BaselineValues { get; set; }

        /// <summary>
        /// 上界（正常范围上限）
        /// </summary>
        public float[] UpperBounds { get; set; }

        /// <summary>
        /// 下界（正常范围下限）
        /// </summary>
        public float[] LowerBounds { get; set; }
    }
}
